<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:57:"themes/admin_simpleboot3/admin/user/department_audit.html";i:1599639465;s:43:"themes/admin_simpleboot3/public/header.html";i:1584585426;}*/ ?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->
    <title><?php echo Config('web_name'); ?></title>

    <link href="__TMPL__/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
    <link href="__TMPL__/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="__STATIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }
    </style>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "__ROOT__/",
            WEB_ROOT: "__WEB_ROOT__/",
            JS_ROOT: "static/js/",
            APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
        };
    </script>
    <script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/wind.js"></script>
    <script src="__TMPL__/public/assets/js/bootstrap.min.js"></script>
    <script src="__TMPL__/public/assets/js/echarts.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip();
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <?php if(APP_DEBUG): ?>
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    <?php endif; ?>
<link rel="stylesheet" href="__STATIC__/js/element/css/element.css">
<style>
    [v-cloak] {
        display: none !important;
    }

    .box {
        display: flex;
        flex-direction: row-reverse;
    }

    .total_point {
        width: 120px;
        padding-left: 15px;
    }

    .all_total {
        font-size: 18px;
        padding-top: 10px;
    }
    input[type="file"] {
        display: none !important;
    }
</style>
</head>
<body>

<div class="wrap js-check-wrap" id="app" v-cloak>
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">优秀处审计</a></li>
    </ul>
    <div style="padding: 20px;">
        <el-table
                :data="tableData"
                :stripe="true"
                :span-method="objectSpanMethod"
                show-summary
                border
                style="width: 100%; margin-top: 20px">
            <el-table-column prop="serial" label="序号" width="100"></el-table-column>
            <el-table-column prop="department" label="审计局" width="150"></el-table-column>
            <el-table-column prop="name" label="考核项目" width="300"></el-table-column>
            <el-table-column prop="amount1" label="考核依据及办法" :show-overflow-tooltip='true'></el-table-column>
            <el-table-column prop="amount2" label="个人自评分" width="120">
                <template slot-scope="scope">
                    <el-input v-model="scope.row.amount2" @change="sum_grade" :readonly="is_edit" @input="checkInputVal(scope.row,scope.$index)"></el-input>
                </template>
            </el-table-column>
            <el-table-column prop="amount6" label="处室负责人评分" width="120"></el-table-column>
            <el-table-column prop="amount3" label="审定分" width="120"></el-table-column>

            <el-table-column prop="content" label="得分概述" width="120">
                <template slot-scope="scope">
                    <el-button type="primary" icon="el-icon-edit" size="mini" round @click="openDialog(scope.$index)"></el-button>
                </template>
            </el-table-column>
        </el-table>

        <div class="box" style="display: none;">
            <div class="total_point all_total">{{all_total_grade}}</div>
            <div class="total_point all_total">{{total_grade}}</div>
            <div class="all_total">总计</div>
        </div>

        <el-upload class="upload-demo" style="margin-top: 10px;" :action="upload_path"
                   :on-change="handleChange"
                   :file-list="fileList">
            <el-button size="small" type="primary">点击上传附件</el-button>
        </el-upload>


        <div class="box" style="margin: 10px;" v-if="status==0">
            <el-button type="primary" @click="saveDepartment" :loading="is_loading">保存</el-button>
        </div>


        <el-dialog title="得分概述" :visible.sync="dialogFormVisible">
            <el-input type="textarea" :rows="5" placeholder="请输入内容" v-model="contents" @input="scoreGrade"></el-input>
            <div slot="footer" class="dialog-footer">
                <el-button @click="dialogFormVisible = false">取 消</el-button>
                <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
            </div>
        </el-dialog>


    </div>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="__STATIC__/js/element/js/element.js"></script>


<script type="text/javascript">

    let app = new Vue({
        el: '#app',
        data: {
            fileList: [],
            files: '',
            files_name: '',
            contents:'',
            i_index:'',
            upload_path:GV.ROOT + 'user/Asset/webuploader_img',
            dialogFormVisible:false,
            is_loading: false,
            is_edit: false,
            tableData: [{
                serial: 1,
                department: '',
                name: '职能评比',
                amount1: "在审计署、省委、省政府组织的评比考核中，集体获得优秀或先进称号的，加8分；个人获得优秀或先进称号的，加6分。在省审计厅组织的评比考核中，集体进入前6名的，依次分别加6分、4分、3分、2分、1分、0.5分；集体获得先进或优秀称号的，加2分；个人获得优秀或先进称号的，加2分。在市委市政府，市委组织部、市委宣传部、市纪委、市直机关党工委、市法制办，及市级其他主管部门(含局机关)组织的各种评比、表彰中，集体获得优秀或先进称号的分别加4分、3分、2分；集体获得一等奖、二等奖、三等奖的分别加5分、4分、3分，4分、3分、2分，3分、2分、1分；个人获得优秀或先进称号（不包括本局推荐出来报市直机关党工委的优秀共产党员）的分别加3分、2分、1分，个人获得一等奖、二等奖、三等奖的分别加3分、2分、1分，2.5分、1.5分、1分，2分、1分、0.5分，当年通过审计署计算机中级考试、省厅计算机中级考试的分别加4分、2分；当年通过高级审计师、高级会计师职称考试的加2分，通过评审的再加1分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 2,
                department: '',
                name: '优秀审计项目和优秀报告',
                amount1: "A.审计项目被审计署评为特等奖和一、二、三等奖的，分别加70分、60分、50分、40分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 2,
                department: '',
                name: '优秀审计项目和优秀报告',
                amount1: "B.审计项目被省厅评为优秀项目、表彰项目的，分别加30分、15分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 2,
                department: '',
                name: '优秀审计项目和优秀报告',
                amount1: "C.审计项目被市局评为优秀项目、表彰项目的，分别加10分、5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 2,
                department: '',
                name: '优秀审计项目和优秀报告',
                amount1: "D.审计（调查）报告、综合报告被省厅、市局评为优秀审计报告的，分别加6分、3分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 2,
                department: '',
                name: '优秀审计项目和优秀报告',
                amount1: "E.制定的审计工作方案被市局评为优秀的，每个加3分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 3,
                department: '',
                name: '大要案查处(按照各类标准计分)',
                amount1: "A．追究处级人员。追究党纪政务处分的：开除党籍、开除公职的，每人加12分；撤销党内职务、留党察看、记大过、降级、撤职的，每人加9分；警告、严重警告、记过的，每人加6分。追究刑事责任的：判处管制、拘役、有期徒刑、无期徒刑、死刑的，每人加15分；判处缓刑或者免于刑事处罚的，每人加10分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 3,
                department: '',
                name: '大要案查处(按照各类标准计分)',
                amount1: "B．追究科级人员。追究党纪政务处分的：开除党籍、开除公职的，每人加9分；撤销党内职务、留党察看、记大过、降级、撤职的，每人加6分；警告、严重警告、记过的，每人加3分。追究刑事责任的：判处管制、拘役、有期徒刑、无期徒刑、死刑的，每人加12分；判处缓刑或者免于刑事处罚的，每人加8分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 3,
                department: '',
                name: '大要案查处(按照各类标准计分)',
                amount1: "C．追究科级以下及其他人员。追究党纪政务处分的：开除党籍、开除公职的，每人加5分；撤销党内职务、留党察看、记大过、降级、撤职的，每人加3分；警告、严重警告、记过的，每人加2分。追究刑事责任的：判处管制、拘役、有期徒刑、无期徒刑、死刑的，每人加8分；判处缓刑或者免于刑事处罚的，每人加5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 4,
                department: '',
                name: '政策法规的“废改立”',
                amount1: "推动设区市及以上党委、政府政策或法规的“废、立”，每项加10分。按上级要求统一修改完善的不加分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 4,
                department: '',
                name: '体制机制创新优化',
                amount1: "推动设区市及以上党委政府、行业主管部门（设区市以上，非被审计单位）体制或机制创新，每项加10分。按上级要求统一对体制机制进行创新优化的不加分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 4,
                department: '',
                name: '“老大难”问题的解决或历史积案的妥善处理',
                amount1: "推动解决市级或行业系统性“老大难”问题或历史积案，每项加10分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 5,
                department: '',
                name: '审计成果得到领导重视（领导批示）',
                amount1: "审计信息（专报）及相关材料获得到党中央、国务院领导批示的每份加30分；",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 5,
                department: '',
                name: '审计成果得到领导重视（领导批示）',
                amount1: "得到省级正职领导批示的，每份加20分，省级副职领导每份加10分，两位以上省领导批示另加5分；",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 5,
                department: '',
                name: '审计成果得到领导重视（领导批示）',
                amount1: "得到市级正职领导批示的每份加5分，市级副职领导每份加2.5分，两位及以上市领导批示另加1分。同一内容被批示按最高分值计分，不重复加分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 6,
                department: '',
                name: '两统筹工作',
                amount1: "积极申报“两统筹”“全覆盖”等优秀案例、经验做法，加1分；入选省厅优秀案例、经验做法进行推广的，每个加4分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 7,
                department: '',
                name: '审计整改与内部审计',
                amount1: "A.推动被审计单位出具审计整改结果公告的，每项加1分。此项加分封顶至15分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 7,
                department: '',
                name: '审计整改与内部审计',
                amount1: "B.审计整改督查（或审计）中发现存在虚假整改情形，并启动审计整改追责程序的，一个事项加2.5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 7,
                department: '',
                name: '审计整改与内部审计',
                amount1: "C.积极探索建立国家审计与内部审计协同机制，建立相关制度的，加2.5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 8,
                department: '',
                name: '大数据审计',
                amount1: "提交的计算机审计案例被省厅以上采用的，每个加4分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 8,
                department: '',
                name: '大数据审计',
                amount1: "提交的课件被审计署录用并被评为获一、二、三等奖的，每件加3分、2分、1分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 8,
                department: '',
                name: '大数据审计',
                amount1: "组织完成编制行业审计数据规划被省厅采用的，每个全省行业加10分，每个全市行业规划加5分；完成省厅确定的重点行业审计标准化数据质量验证试点工作，质量良好的，每个行业加8分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 8,
                department: '',
                name: '大数据审计',
                amount1: "牵头承担省厅无项目审计试点任务，取得较好成效的，每项任务加10分,配合落实省厅无项目审计试点任务，取得良好成效的，酌情加2.5-5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 9,
                department: '',
                name: '信息',
                amount1: "（1）中办国办信息采用每篇15分；审计署、省委省政府等省部级信息刊物采用每篇7.5分，被加按语转发，另加2.5分。（2）《浙江审计信息（专报）》采用每篇5分。（3）《浙江审计信息（调查与思考）》采用每篇4分。（4）《浙江审计信息（简报）》采用，问题类信息每篇4分，其他正条每篇1分，简讯每篇0.5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 10,
                department: '',
                name: '宣传',
                amount1: "（1）中央（国家）级媒体和刊物采用的每篇加7.5分，头版头条另加2.5分。（2）省部级公开媒体和刊物采用，每篇加4分，头版头条另加1分，图片新闻、简讯减半。（3）《浙江审计》等省级机关刊物采用的每篇加2.5分，简讯减半。（4）《浙江内部审计》《实践与创新》《审计典型案例》采用，每篇加2.5分；《审计热点面对面》中经验、案例、观点采纳，每篇加1分；被厅机关专网网站要闻、浙江审计政务微信采用每篇加1分，微信头条另加0.5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 11,
                department: '',
                name: '报告采用',
                amount1: "（1）上报省厅的反映设区市本级的案例，被省厅同步项目综合报告采用的，每个加1.5分；被审计署审计结果公告和同步项目综合报告采用的，每个加5分。（重复不加分）（2）省厅审计工作报告反映问题清单中，具体问题事项由设区市审计局实施的，每个问题事项加0.5分，问题事项为报告点名事项的，每个问题事项另加1.5分。﹝对于市级审计机关组织的审计项目，即通知书和报告由市级审计机关出，实施主体为县级审计机关的，相应分数减半；本款与第（1）款重复的，分别得分﹞。（3）设区市审计局实施的异地审计项目成果被其他市、县（市、区）“三个报告”引用的，每个问题加0.5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 12,
                department: '',
                name: '审计公告',
                amount1: "审计公告：通过各级政府及审计机关门户网站或其他公开发行媒体，对审计结果进行公告的，每个加1分（其中被审计署结果公告采用的，每个加2.5分）。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 13,
                department: '',
                name: '案例报送',
                amount1: "“容错纠错”案例报送、采用：按要求报送的，每个加1分。报送案例被省委组织部采用的，每个另加5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 14,
                department: '',
                name: '工作经验和制度创新',
                amount1: "A.总结提炼的局本级工作经验、制度创新，被审计署肯定并发文在全国推广的，每项加25分。被省委省政府肯定并发文在全省推广的，每项加25分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 14,
                department: '',
                name: '工作经验和制度创新',
                amount1: "B.总结提炼的局本级工作经验、制度创新，被省厅肯定并发文在全省推广的，每项加10分。被市委市政府肯定并发文在全市推广的，每项加10分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 15,
                department: '',
                name: '审计科研工作',
                amount1: "A.主持或承担由审计署、国务院其他有关部门或省政府下达的重点课题，每项加10分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 15,
                department: '',
                name: '审计科研工作',
                amount1: "B.主持或承担审计署、国务院其他有关部门所属科研机构、省社科联、省科技厅、省审计厅等省级有关部门下达的重点课题，每项加8分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 15,
                department: '',
                name: '审计科研工作',
                amount1: "C.主持或承担省厅一般课题，每项加2.5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 15,
                department: '',
                name: '审计科研工作',
                amount1: "D.课题加分以结题为标准。通过招投标立项，另加2.5分；科研成果转化为省厅制定涉及全省审计机关审计业务管理的意见、办法、原则等文件的，另加2.5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 15,
                department: '',
                name: '审计科研工作',
                amount1: "E.省厅年度优秀审计论文和调研文章评选的结果考核，一等奖4分、二等奖2.5分、三等奖1.5分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }, {
                serial: 16,
                department: '',
                name: '七大攻坚战',
                amount1: "按照《中共台州市审计局党组关于开展“审计效率提升年”活动的实施意见》，全力打好七大攻坚战，形成可复制、可推广的工作模式、经验和标准，并经局长办公会议讨论通过的，每项加10分。",
                amount2: '',
                amount3: '',
                amount6: '',
                amount5: '',
                content:'',
                type: 1,
                d_id: ''
            }],
            total_grade: 0,
            all_total_grade: 0,
            status: 1//1.领导打分完成
        },
        created: function () {
            let that = this;
            let month = that.getQueryVariable("month");
            $.ajax({
                url: GV.ROOT + "admin/user/getDepartmentDetail",
                data: {
                    'month':month
                },
                dataType: "json",
                type: "post",
                success: function (res) {
                    if (res.code === 200) {
                        for (const i in that.tableData) {
                            that.tableData[i].department = res.data.department_name;
                            if (res.data.tableData.length > 0) {
                                let status = 0;
                                that.fileList = res.data.fileList;
                                that.files= res.data.files;
                                that.files_name= res.data.files_name;
                                that.tableData[i].amount2 = res.data.tableData[i].amount2;
                                that.tableData[i].amount3 = res.data.tableData[i].amount3;
                                that.tableData[i].content = res.data.tableData[i].content;
                                that.tableData[i].amount5 = res.data.tableData[i].amount5;
                                that.tableData[i].amount6 = res.data.tableData[i].amount6;
                                that.tableData[i].d_id = res.data.tableData[i].id;
                                status += parseFloat(res.data.tableData[i].status);
                                if (status > 0) {
                                    that.is_edit = true;
                                }
                                that.status = status;
                            } else {
                                that.status = 0;
                            }
                        }
                        that.sum_grade();
                    } else {
                        this.$message.error(res.message);
                    }
                }
            });
        },
        methods: {
            getQueryVariable(variable){
                var query = window.location.search.substring(1);
                var vars = query.split("&");
                for (var i=0;i<vars.length;i++) {
                    var pair = vars[i].split("=");
                    if(pair[0] == variable){return pair[1];}
                }
                return(false);
            },
            handleChange(file, fileList) {
                this.fileList = fileList.slice(-3);
                let files = '';
                let files_name = '';
                for (const item of fileList) {
                    if(item.response!==undefined){
                        if (files !== ''){
                            files+=','
                        }
                        files+=item.response.data.filepath
                        if (files_name !== ''){
                            files_name+=','
                        }
                        files_name+=item.response.data.name
                    }else if(item.url!==undefined){
                        if (files !== ''){
                            files+=','
                        }
                        files+=item.url
                        if (files_name !== ''){
                            files_name+=','
                        }
                        files_name+=item.name
                    }
                }
                this.files = files;
                this.files_name = files_name;
            },
            openDialog(index){
                this.i_index = index
                this.dialogFormVisible=true
                this.contents =  this.tableData[index].content
            },
            scoreGrade(val){
                let i = this.i_index;
                this.tableData[i].content = val;
            },
            checkInputVal(item,index){
                this.tableData[index].amount3 = item['amount3'].replace(/[^\d.]/g,'');
            },
            //计算总分数
            sum_grade() {
                let total_grade = 0;
                let all_total_grade = 0;
                for (const item of this.tableData) {
                    if (item.amount2 > 0) {
                        total_grade += parseFloat(item.amount2);
                    }
                    if (item.amount5 > 0) {
                        all_total_grade += parseFloat(item.amount5);
                    }
                }
                this.total_grade = total_grade;
                this.all_total_grade = all_total_grade;
            },
            objectSpanMethod({row, column, rowIndex, columnIndex}) {
                if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2) {
                    if (row.serial === 1 || row.serial === 6 || row.serial === 9 || row.serial === 10 || row.serial === 11 || row.serial === 12 || row.serial === 13 || row.serial === 16) {
                        return {
                            rowspan: 1,
                            colspan: 1
                        };
                    } else if (rowIndex === 1) {
                        return {
                            rowspan: 5,
                            colspan: 1
                        };
                    } else if (rowIndex === 6) {
                        return {
                            rowspan: 3,
                            colspan: 1
                        };
                    } else if (rowIndex === 9) {
                        if (columnIndex === 0 || columnIndex === 1) {
                            return {
                                rowspan: 3,
                                colspan: 1
                            };
                        }
                    } else if (rowIndex === 10) {
                        if (columnIndex === 0 || columnIndex === 1) {
                            return {
                                rowspan: 0,
                                colspan: 0
                            };
                        }
                    } else if (rowIndex === 11) {
                        if (columnIndex === 0 || columnIndex === 1) {
                            return {
                                rowspan: 0,
                                colspan: 0
                            };
                        }
                    } else if (rowIndex === 12) {
                        return {
                            rowspan: 3,
                            colspan: 1
                        };
                    } else if (rowIndex === 16) {
                        return {
                            rowspan: 3,
                            colspan: 1
                        };
                    } else if (rowIndex === 19) {
                        return {
                            rowspan: 4,
                            colspan: 1
                        };
                    } else if (rowIndex === 28) {
                        return {
                            rowspan: 2,
                            colspan: 1
                        };
                    } else if (rowIndex === 30) {
                        return {
                            rowspan: 5,
                            colspan: 1
                        };
                    } else {
                        return {
                            rowspan: 0,
                            colspan: 0
                        };
                    }
                }
            },
            //保存记录
            saveDepartment() {
                this.is_loading = true;
                let that = this;
                let files = '';
                if(that.files !== undefined){
                    files = that.files;
                }
                let files_name = '';
                if(that.files_name !== undefined){
                    files_name = that.files_name;
                }
                $.ajax({
                    url: GV.ROOT + "admin/user/addOfficeGrade",
                    data: {
                        tableData: that.tableData,
                        total_grade: that.total_grade,
                        files: files,
                        files_name: files_name,
                    },
                    dataType: "json",
                    type: "post",
                    success: function (res) {
                        if (res.code === 200) {
                            that.$message({
                                message: res.message,
                                type: 'success'
                            });
                            setTimeout(function () {
                                window.location.href = document.referrer;
                            }, 500);
                        } else {
                            that.$message.error(res.message);
                        }
                        that.is_loading = false;
                    }
                });
            }
        }
    })
</script>


</body>
</html>